﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.ApplyGather;
using SystemCenterSoa.IRepository.SystemManager.ApplyGather;
using SystemCenterSoa.PoModel.SystemManager.ApplyGather;

namespace SystemCenterSoa.Service.SystemManager.ApplyGather
{
    public class FieldApplyService
    {
        private IFieldApplyRepository _fieldApplyRepository;

        public FieldApplyService(IFieldApplyRepository fieldApplyRepository)
        {
            _fieldApplyRepository = fieldApplyRepository;
        }
        public bool GetFieldApplyAdd(FieldApplyPo fieldApply)
        {
            return _fieldApplyRepository.GetFieldApplyAdd(fieldApply);
        }
        public List<FieldApplyDto> GetFieldApplyList(int deId, string nian, string yue, int pageIndex, int pageSize)
        {
            return _fieldApplyRepository.GetFieldApplyList(deId, nian, yue, pageIndex, pageSize);
        }
        public FieldApplyPo GetFieldApplyFan(int id)
        {
            return _fieldApplyRepository.GetFieldApplyFan(id);
        }
        public bool GetFieldApplyUpdate(FieldApplyPo fieldApply)
        {
            return _fieldApplyRepository.GetFieldApplyUpdate(fieldApply);
        }
        public bool GetFieldApplyDel(string ids)
        {
            return _fieldApplyRepository.GetFieldApplyDel(ids);
        }
    }
}
